<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>SCU_HOTEL后台</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <link rel="stylesheet" href="css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="css/font-awesome.min..css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="css/icoicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="css/AdminLTE.min.css">
  <style>
    .form-control{
      padding-top:10px;
    }
  </style>
  <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
        page. However, you can choose any other skin. Make sure you
        apply the skin class to the body tag so the changes take effect. -->
  <link rel="stylesheet" href="css/all-skins.min.css">


  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->

  <!-- Google Font -->
  <link rel="stylesheet"
        href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<!--
BODY TAG OPTIONS:
=================
Apply one or more of the following classes to get the
desired effect
|---------------------------------------------------------|
| SKINS         | skin-blue                               |
|               | skin-black                              |
|               | skin-purple                             |
|               | skin-yellow                             |
|               | skin-red                                |
|               | skin-green                              |
|---------------------------------------------------------|
|LAYOUT OPTIONS | fixed                                   |
|               | layout-boxed                            |
|               | layout-top-nav                          |
|               | sidebar-collapse                        |
|               | sidebar-mini                            |
|---------------------------------------------------------|
-->
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

  <!-- Main Header -->
  <header class="main-header">

    <!-- Logo -->
    <a href="adminUser.html" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini">后台</span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg"><b>scu_hotel</b>后台管理</span>
    </a>

    <!-- Header Navbar -->
    <nav class="navbar navbar-static-top" role="navigation">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>
      <!-- Navbar Right Menu -->
      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
          <!-- User Account Menu -->
          <li class="dropdown user user-menu">
            <!-- Menu Toggle Button -->
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <!-- The user image in the navbar-->
              <img src="static/头像.jpg" class="user-image" alt="User Image">
              <!-- hidden-xs hides the username on small devices so only the image appears. -->
              <span class="hidden-xs">管理员名</span>
            </a>
            <ul class="dropdown-menu">
              <!-- The user image in the menu -->
              <li class="user-header">
                <img src="static/头像.jpg" class="img-circle" alt="User Image">

                <p>
                  管理员名
                </p>
              </li>
              <!-- Menu Footer-->
              <li class="user-footer">
                <div class="pull-left">
                  <a href="#" class="btn btn-default btn-flat">切换账号</a>
                </div>
                <div class="pull-right">
                  <a href="#" class="btn btn-default btn-flat">注销</a>
                </div>
              </li>
            </ul>
          </li>
          <!-- Control Sidebar Toggle Button -->
        </ul>
      </div>
    </nav>
  </header>
  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">

    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">

      <!-- Sidebar user panel (optional) -->
      <div class="user-panel">
        <div class="pull-left image">
          <img src="static/头像.jpg" class="img-circle" alt="User Image">
        </div>
        <div class="pull-left info">
          <p>管理员名</p>
          <!-- Status -->
          <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
        </div>
      </div>


      <!-- Sidebar Menu -->
      <ul class="sidebar-menu" data-widget="tree">
        <li class="active"><a href="adminUser.html"><i class="fa fa-user"></i> <span>用户管理</span></a></li>
        <li><a href="adminHotel.html"><i class="fa fa-home"></i> <span>商家管理</span></a></li>
      </ul>
      <!-- /.sidebar-menu -->
    </section>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        用户管理
      </h1>
    </section>

    <!-- Main content -->
    <section class="content container-fluid">

      <div class="row">
        <div class="col-xs-12">
          <div class="box">
            <div class="box-header">
              <h3 class="box-title">用户列表</h3>

            </div>
            <!-- /.box-header -->
            <div class="box-body table-responsive no-padding">
              <table class="table table-hover">
                <tr>
                  <th>用户ID</th>
                  <th>用户名</th>
                  <th>密码</th>
                  <th>昵称</th>
                  <th>电话号码</th>
                  <th>性别</th>
                  <th>城市</th>
                  <th>是否删除</th>
                  <th>修改密码</th>
                  <th>用户密码</th>
                  <th>操作</th>
                  <th>wibjsb</th>
                </tr>
                <tr>
                  <td>183</td>
                  <td>John Doe</td>
                  <td>1234556</td>
                  <td>
                    <button type="button" class="btn btn-block btn-default edit">编辑</button>
                    <button type="button" class="btn btn-block btn-danger">删除</button>
                  </td>
                  <td>28etu</td>
                </tr>
                <tr>
                  <td th:text="${user.getUserId()}"></td>
                  <td th:text="${user.getUsername()}"></td>
                  <td th:text="${user.getPassword()}"></td>
                  <td th:text="${user.getDisplayName()}"></td>
                  <td th:text="${user.getTel()}"></td>
                  <td th:text="${user.getGender()}"></td>
                  <td th:text="${user.getCity()}"></td>
                  <td>
                    <button type="button" class="btn btn-default" data-toggle="modal" data-target="#modal-default">
                      编辑
                    </button>
                  </td>
                  <td><a th:href="'/user/delete?userId=' + ${user.userId}" style="cursor: pointer;">删除</a></td>
                  <!-- <td><a th:href="'/user/edit?userId=' + ${user.userId}">修改</a></td>
                  <td><a th:href="'/user/delete?userId=' + ${user.userId}">删除</a></td> -->
                </tr>
                <div class="modal fade" id="modal-default">
                    <div class="modal-dialog">
                      <div class="modal-content">
                        <div class="modal-header">
                          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                            <span aria-hidden="true">&times;</span></button>
                          <h4 class="modal-title">个人信息编辑</h4>
                        </div>
                        <div class="modal-body">
                            <form role="form">
                                <div class="box-body">
                                  <div class="form-group">
                                    <label>用户ID</label>
                                    <input type="UserID" class="form-control" placeholder="">
                                  </div>
                                  <div class="form-group">
                                    <label>用户名</label>
                                    <input type="UserName" class="form-control" placeholder="">
                                  </div>
                                  <div class="form-group">
                                    <label>用户密码</label>
                                    <input type="UserPassword" class="form-control" placeholder="">
                                  </div>
                                </div>
                              </form>
                        </div>
                        <div class="modal-footer">
                          <button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
                          <button type="button" class="btn btn-primary">Save changes</button>
                        </div>
                      </div>
                      <!-- /.modal-content -->
                    </div>
                    <!-- /.modal-dialog -->
                  </div>
                  <!-- /.modal -->
              </table>
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
      </div>

    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

  <!-- /.control-sidebar -->
  <!-- Add the sidebar's background. This div must be placed
  immediately after the control sidebar -->
</div> 
<!-- ./wrapper -->

<!-- REQUIRED JS SCRIPTS -->

<!-- jQuery 3 -->
<script src="js/jquery.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.slimscroll.min.js"></script>
<script src="js/fastclick.js"></script>
<script src="js/adminlte.min.js"></script>
<script src="js/demo.js"></script>
<!-- <script>
  var status = 0;
  var edit = document.getElementsByClassName('edit');
  var item = document.getElementsByTagName('td');
  var item_length = item.length-1;
  var item_value = new Array(item_length);

  for(i = 0;i<item.item_length;i++){
    item_value[i] = item[i].innerHTML;
  }

  edit.onclick = function(){
    if(status === 0){
      edit.innerHTML = '保存';
      for(i = 0;i< item_length; i++){
        item[i].innerHTML = '<div class="col-xs-3"><input type="text" class="form-control item_input" value="'+item_value[i]+'"></div>'
      }
      status = 1;
    }else{
      edit.innerHTML = '编辑';
      var item_input = document.getElementsByClassName('item_input');
      for(i = 0;i < item_length; i++){
        item_value[i] = item_input[i].value;
      }
      for(i = 0; i< item_length;i++){
        item[i].innerHTML = item_value[i];
      }
      status = 0;
    }
  }
</script> -->

<!-- Optionally, you can add Slimscroll and FastClick plugins.
     Both of these plugins are recommended to enhance the
     user experience. -->
</body>
</html>